# Contributor: Blake Oliver <oliver22213@me.com>
# Maintainer: Blake Oliver <oliver22213@me.com>
pkgname=libdotconf
pkgver=1.3
pkgrel=0
pkgdesc="dot.conf configuration file parser"
url="https://github.com/williamh/dotconf"
arch="all"
license="LGPL-2.1-only"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/williamh/dotconf/archive/v$pkgver/libdotconf-$pkgver.tar.gz"
builddir="$srcdir/dotconf-$pkgver"
options="!check" # No test suite

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

prepare() {
	autoreconf -fi
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="ccd806685879e2438efaa06949cd685af8bd318d38111babf8c289134b90d01bc2857277f2aa01549a1ffe8a2f2d5bbb0685f46de0d7b987412350af8a28d6d5  libdotconf-1.3.tar.gz"
